<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Index extends MY_Controller {
	function __construct() {
        parent::__construct();
        $this->load->library('theme');
    }
	public function index() {
		$this->theme->set_template('template');
		$this->theme->set_module('home');
		
		$this->makeSlide();
		$this->theme->render();
	}

	private function makeSlide() {
		$this->theme->set_widget('slides', 'slide');
	}
}